package com.wangzhen.codebase;

public class Test {

    private Integer abc;

    public void set(int i) {
        abc = i;
    }

    public Integer get() {
        return abc;
    }

    public static void main(String[] args) throws InterruptedException {
        Test test = new Test();
        test.set(123);
        Thread thread = new Thread(() -> {
            Integer result = test.get();
            System.out.println(result);
        });
        thread.start();

        thread.join();
    }
}
